package network;

import java.io.Serializable;
import java.net.InetAddress;
import java.util.LinkedList;
import java.util.List;

import map.Lightmap;
import objects.Player;

public class User implements Serializable {

	
	private static final long serialVersionUID = 3080748708352185683L;
	private InetAddress inetAddress;
	private int port;
	private int userId;
	private Player player;
	private boolean ready;
	private List<Lightmap> listLightmap;
	
	
	public User(InetAddress inetAddress, int port, int userId, Player player) {
		this.inetAddress = inetAddress;
		this.port = port;
		this.userId = userId;
		this.player = player;
		this.ready = false;
		listLightmap = new LinkedList<Lightmap>();
	}

	public InetAddress getInetAddress() {
		return inetAddress;
	}

	public void setInetAddress(InetAddress inetAddress) {
		this.inetAddress = inetAddress;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public boolean isReady() {
		return ready;
	}

	public void setReady(boolean ready) {
		this.ready = ready;
	}

	public Player getPlayer() {
		return player;
	}

	public void setPlayer(Player player) {
		this.player = player;
	}

	public List<Lightmap> getListLightmap() {
		return listLightmap;
	}

	public void setListLightmap(List<Lightmap> listLightmap) {
		this.listLightmap = listLightmap;
	}
	
	

}
